package cn.stylefeng.guns.modular.vote.controller;

import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource;
import cn.stylefeng.roses.kernel.scanner.api.annotation.GetResource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;

/**
 * 作品表;界面
 *
 * @author songq
 * @date 2025/04/22 14:49
 */
@Controller
@ApiResource(name = "作品表;界面")
public class WorksViewController {

    /**
     * 作品表;首页
     *
     * @author songq
     * @date 2025/04/22 14:49
     */
    @GetResource(name = "作品表;首页", path = "/view/works")
    public String worksIndex() {
        return "/modular/business/works/works.html";
    }

    /**
     * 作品表;-新增
     *
     * @author songq
     * @date 2025/04/22 14:49
     */
    @GetResource(name = "作品表;-新增", path = "/view/works/add")
    public String worksAdd() {
        return "/modular/business/works/works_add.html";
    }

    /**
     * 作品表-编辑
     *
     * @author songq
     * @date 2025/04/22 14:49
     */
    @GetResource(name = "作品表;-编辑", path = "/view/works/edit")
    public String worksEdit() {
        return "/modular/business/works/works_edit.html";
    }


    @GetResource(name = "作品-web首页", path = "/view/web/index")
    public String worksWebIndex() {
        return "/modular/business/index/votep1.html";
    }

    @GetResource(name = "作品-web详情", path = "/view/web/Details")
    public String worksWebDetails() {
        return "/modular/business/index/votep2.html";
    }

    @GetResource(name = "作品-web投票", path = "/view/web/vote")
    public String worksVote() {
        return "/modular/business/index/votep4.html";
    }


}